package com.bdqn.Service.Supplier.impl;

import com.bdqn.Service.Supplier.SupplierService;
import com.bdqn.entity.Supplier;
import com.bdqn.mapper.Supplier.SupplierMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Resource
    private SupplierMapper supplierMapper;
    @Override
    public Supplier selectSupplierById(Integer id) {
        return supplierMapper.selectSupplierById(id);
    }

    @Override
    public List<Supplier> SelectByMer(String[] ids) {
        return supplierMapper.SelectByMer(ids);
    }

    @Override
    public List<Supplier> Sel(Supplier sup, int page, int limit) {
        return supplierMapper.Sel(sup,page,limit);
    }

    @Override
    public int getCount(Supplier supplier) {
        return supplierMapper.getCount(supplier);
    }

    @Override
    public Supplier SelByNum(String supplierNum) {
        return supplierMapper.SelByNum(supplierNum);
    }

    @Override
    public List<Supplier> findAll() {
        return supplierMapper.findAll();
    }

    @Override
    public boolean Insert(Supplier supplier) {
        return supplierMapper.Insert(supplier);
    }

    @Override
    public boolean Update(Supplier supplier) {
        return supplierMapper.Update(supplier);
    }

    @Override
    public int max() {
        return supplierMapper.max();
    }

    @Override
    public Supplier selectSupById(int id) {
        return supplierMapper.selectSupById(id);
    }

    @Override
    public List<Supplier> SelSupByQuo(Supplier supplier) {
        return supplierMapper.SelSupByQuo(supplier);
    }
}
